/*

Author   : chaos

FileName : manipulator.cpp

Date     : 16/08/17 09:49:14

*/

#include <iostream>
#include <iomanip>
using namespace std;

int main(int argc ,char *argv[])
{
    double d = 24.5467865;
    int n = 24;

    cout << "Using manipulator oct , setw() and setiosflags...";
    cout << endl;
    cout << oct << setw(10) << right << n << endl;

    cout << "Using manipulator setprecision and resetiosflags...";
    cout << endl;

    cout << setiosflags(ios::scientific) << setprecision(4) << d;
    cout << endl;
    cout << resetiosflags(ios::scientific) << d << endl;


    return 0;
}
